%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Scenario 8.3 ATM usage
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{Scenario 8.3 ATM usage}

This scenario is about ATM usage by a customer. We will split this scenario in four separate actions to keep an overview.






%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% ATM login and logout
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsubsection{ATM login and logout}
In the first part we will illustrate in figure \ref{fig:seq_8_3_ATM_Login_Logout} on page \pageref{fig:seq_8_3_ATM_Login_Logout} how a customer can log in and out to an ATM.

The use cases touched in this scenario are:
\begin{itemize}
 \item UC1: Log in
 \item UC2: Log off
\end{itemize}


\begin{figure}[!h]
    \centering
        \includegraphics[angle=90, width=0.5\textwidth]{Scenarios/scenario_img/8_3_ATM_Login_Logout.png}
    \caption{ATM login and logout}
    \label{fig:seq_8_3_ATM_Login_Logout}
\end{figure}






%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Change PIN
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsubsection{Change PIN}
In the second part we will illustrate in figure \ref{fig:seq_8_3_Request_new_PIN} on page \pageref{fig:seq_8_3_Request_new_PIN} how a customer can change a bank card's PIN using an ATM.


\begin{figure}[!h]
    \centering
        \includegraphics[angle=90, width=0.45\textwidth]{Scenarios/scenario_img/8_3_Request_new_PIN.png}
    \caption{Change PIN at ATM}
    \label{fig:seq_8_3_Request_new_PIN}
\end{figure}





%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Check account balance
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsubsection{Check account balance}
In the third part we will illustrate in figure \ref{fig:seq_8_3_Check_Account_balance} on page \pageref{fig:seq_8_3_Check_Account_balance} how a customer can view an account's balance using an ATM.

The use case touched in this scenario is UC5: Consult bank account overview.


\begin{figure}[!h]
    \centering
        \includegraphics[angle=90, width=0.35\textwidth]{Scenarios/scenario_img/8_3_Check_Account_balance}
    \caption{Check account balance at ATM}
    \label{fig:seq_8_3_Check_Account_balance}
\end{figure}




%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Withdraw cash
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsubsection{Withdraw cash}
In the fourth part we will illustrate in figure \ref{fig:seq_8_3_Withdraw_cash} on page \pageref{fig:seq_8_3_Withdraw_cash} how a customer can withdraw cash from an ATM.

Note that the cash withdrawal is converted into a Transaction and that once the Transaction is handed to the \emph{Transaction Processing System} it is handled according to the diagram in figure \ref{fig:seq_UC11_Execute_transaction} on page \pageref{fig:seq_UC11_Execute_transaction}. The \emph{ATM System} keeps waiting for the \emph{Transaction Processing System} until a positive reply is received, indicating that the withdrawal debit is processed correctly. The ATM only then hands over the money. Because cash withdrawals get a high priority the wait is very short; 95\% of all withdrawals are confirmed within 20 seconds.

The use cases touched in this scenario are:
\begin{itemize}
 \item UC8: Withdraw cash
 \item UC11: Execute transaction
\end{itemize}


\begin{figure}[!h]
    \centering
        \includegraphics[width=1.0\textwidth]{Scenarios/scenario_img/8_3_Withdraw_cash}
    \caption{Withdraw cash at ATM}
    \label{fig:seq_8_3_Withdraw_cash}
\end{figure}



